<template>
    <div class="detalis">
        <div class="header">
            <dl>
                <dt>
                    <span class="iconfont" @click="goback">&#xe780;</span>
                    <span class="iconfont">&#xe604;</span>
                </dt>  
                <dd v-show="status" class="info">
                    <div class="photo"><img src="@/assets/img/customer/evaluate-icon1.png" alt=""></div>
                    <div class="name">
                        <h3>清风<span style="margin-left:10px;" class="iconfont">&#xe813;</span></h3>
                        <p>会员积分：2000分</p>
                    </div>
                </dd>
                <dd v-show="!status" class="login">
                    <h4>未登录</h4>
                    <p class="welcome">欢迎来到锦曼旗袍</p>
                    <p class="lognin" @click="login">马上登陆</p>   
                </dd>
            </dl>
        </div>
        <div class="clist">
            <ul class="roder">
                <li>
                    <div class="clist-left"></div>
                    <div class="clist-center">待付款</div>
                    <div class="clist-right iconfont">&#xe63f;</div>
                </li>
                <li>
                    <div class="clist-left"></div>
                    <div class="clist-center">待收藏</div>
                    <div class="clist-right iconfont">&#xe63f;</div>
                </li><li>
                    <div class="clist-left"></div>
                    <div class="clist-center">待发货</div>
                    <div class="clist-right iconfont">&#xe63f;</div>
                </li><li>
                    <div class="clist-left"></div>
                    <div class="clist-center">全部订单</div>
                    <div class="clist-right iconfont">&#xe63f;</div>
                </li>
            </ul>
        </div>
        <div class="clist">
            <ul class="address">
                <li>
                    <div class="clist-left"></div>
                    <div class="clist-center">发货地址</div>
                    <div class="clist-right iconfont">&#xe63f;</div>
                </li>
                <li>
                    <div class="clist-left"></div>
                    <div class="clist-center">积分管理</div>
                    <div class="clist-right iconfont">&#xe63f;</div>
                </li><li>
                    <div class="clist-left"></div>
                    <div class="clist-center">我的消息</div>
                    <div class="clist-right iconfont">&#xe63f;</div>
                </li><li>
                    <div class="clist-left"></div>
                    <div class="clist-center">旗袍知识</div>
                    <div class="clist-right iconfont">&#xe63f;</div>
                </li>
            </ul>
        </div>
    </div>
</template>


<script>
export default {
    data(){
        return{
            status:false
        }
    },
    methods:{
        goback(){
            this.$router.go(-1)
        },
        login(){
            this.$router.push('/login')
        }
    }
}
</script>


<style scoped>
.detalis{
    width: 100%;
}
.header{
    width: 100%;
    height: 200px;
    box-sizing: border-box; 
    background-image: url(../../../assets/img/public/member_header_bg.jpg);
    background-repeat:no-repeat;
    background-size: cover; 
    padding: 10px;
}
dl{
    height: 100%;
}
dt{
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
}
dd.info{
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: black;
    transform: translateY(50%);
}
.name h3{
    font-size: .9rem;
    line-height: 2rem;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.login{
    font-weight: bold;
    text-align: center;
    transform: translateY(50%);
    font-size: 1.2rem;
}
.welcome,.lognin{
    font-size: 1rem;
    line-height: 2rem;;
}
.lognin{
    border-radius: .4rem;
    background: red;
    color: white;
    width: 25%;
    margin: 0 auto;
    padding: 0 10px;
}
.name h3 span{
    font-size: .7rem;;
}
.clist{
    box-sizing: border-box;
    padding: 5px 10px 0 10px;
    margin-top: 10px;
    line-height: 2rem;
    background: antiquewhite;
}
.clist li{
    display: flex;
    border-bottom: 1px solid #cecece;
    padding: 10px 0;
}
.clist-left{
    height: 40px;
    width: 40px;
    background-image: url(../../../assets/img/public/funMenu-icon.png);
    background-repeat:no-repeat;
    background-size: cover;
    margin-right: 10px;   
}
.clist-center{
    flex: 1;
    font-weight: bold;
}
.address{
    margin-top: 10px;
}
.roder li:nth-child(2) .clist-left{
    background-position: -40px 0px;
}
.roder li:nth-child(3) .clist-left{
    background-position: -80px 0px;
}
.roder li:nth-child(4) .clist-left{
    background-position: -120px 0px;
}
.address li:nth-child(1) .clist-left{
    background-position: -160px 0px;
}
.address li:nth-child(2) .clist-left{
    background-position: -200px 0px;
}
.address li:nth-child(3) .clist-left{
    background-position: -240px 0px;
}

</style>
